package ltd.ninefish.framework.core.exception.auth;

import cn.hutool.core.util.StrUtil;

/**
 * @author zhaoxiubin
 * create-time 2024-01-13 18:22
 * description 未能通过的角色认证异常
 **/

public class NotRoleException extends RuntimeException
{
    private static final long serialVersionUID = 1746115299804225538L;

    public NotRoleException(String role)
    {
        super(role);
    }

    public NotRoleException(String[] roles)
    {
        super(StrUtil.join(",", roles));
    }
}
